package com.huxianyang.converter;

import com.huxianyang.bean.User;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

/**
 * 
 * @since 2022/06/01 20:13
 * @author HuXianyang
 */
@Component
public class String2UserConverter implements Converter<String, User> {
    @Override
    public User convert(String s) {
        return new User(s,s);
    }
}